<template>
    <div>
        <Card :title="copyFormData.pageTitle" :bordered="false" dis-hover class="ivu-mt">
            <Form ref="formData" :model="formData" :rules="copyFormDataRules" :label-width="140">
                <Row>
                    <Col span="18" offset="3" v-for="(item, index) in copyFormData" :key="index">
                        <component :itemData="item.data" :formData.sync="formData" v-bind:is="item.fileName" @handleChangeFormData="handleChangeFormData"></component>
                    </Col>
                    <Col span="18" offset="3">
                        <FormItem>
                          <Button type="primary" @click="handleSubmit('formData')">提交</Button>
                          <Button @click="handleReset('formData')" class="ivu-ml-8">清空</Button>
                        </FormItem>
                    </Col>
                </Row>
            </Form>
        </Card>
    </div>
</template>
<script>
    import forms from '@/mixins/dynamicFormEdit'; // 混入通用代码

    export default {
        mixins: [ forms ],
        components: { },
        data () {
            return {
            }
        }
    }
</script>
<style lang="less" scoped>
</style>
